<template>
    <viewFile v-bind:wpsUrl="jwpsUrl" v-bind:wpstoken="jtoken"/>
</template>
<script>
import viewFile from '../components/view'
export default {
  data(){
    return{
      jwpsUrl:'',
      jtoken:''
    }
  },
  created() {
    this.jwpsUrl = sessionStorage.wpsUrl;
    this.jtoken = sessionStorage.wpstoken;

    console.log('this.jwpsUrl=',this.jwpsUrl);
    console.log('this.jtoken=',this.jtoken);
  },
  // 通过组件渲染wps的 iframe 框架
  components: {
    viewFile
  }
}
</script>
<style>
 html{
    height: 100%;
    width: 100%;
  }
  body{
    height: 100%;
    width: 100%;
  }
  body #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
  width: 100%;
}
  body #app #wps-iframe{
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    height: 100%;
    /* 防止双击缩放 */
    touch-action: manipulation;
  }
</style>
